//
//  CourseForecastSharesViewController.m
//  ECBBusinessCamp
//
//  Created by rimi on 16/6/30.
//  Copyright © 2016年 邓毕华. All rights reserved.
//

#import "CourseForecastSharesViewController.h"

@interface CourseForecastSharesViewController ()

@property (weak, nonatomic) IBOutlet UIButton *weibo;

@property (weak, nonatomic) IBOutlet UIButton *weixin;


@end

@implementation CourseForecastSharesViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _weibo.tag = TAG_BTN - 1;
    _weixin.tag = TAG_BTN - 2;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    [self.view removeFromSuperview];
    [self removeFromParentViewController];
}

- (IBAction)actionOfBtn:(UIButton *)sender {
    switch (sender.tag - TAG_BTN) {
        case -1:
            NSLog(@"微博");
            break;
        case -2:
            NSLog(@"朋友圈");
            break;
            
        default:
            break;
    }
}


@end
